/**
 * 奖惩记录
 */
import React from 'react';
import { Table } from 'antd';
import { Icon } from '@/pages/Recruitment/components';
import { FormContent } from '../../components';

export default function AssessReward() {
    const columns = [
        {
            title: '奖惩项',
            dataIndex: 'name',
            width: '30%',
            editable: true
        },
        {
            title: '类别',
            dataIndex: 'age',
            editable: true
        },
        {
            title: '原因',
            dataIndex: 'address',
            editable: true
        },
        {
            title: '金额',
            dataIndex: 'address2',
            editable: true
        },
        {
            title: '操作',
            dataIndex: 'operation',
            width: 100,
            align: 'center',
            render: () => <Icon title="查看详情" type="listfunction_viewinterview_icon_default" onClick={() => {}} />
        }
    ];

    const dataSource = [
        {
            key: '0',
            name: 'Edward King 0',
            age: '32',
            address: 'London, Park Lane no. 0'
        },
        {
            key: '1',
            name: 'Edward King 1',
            age: '32',
            address: 'London, Park Lane no. 1'
        }
    ];

    return (
        <FormContent>
            <Table columns={columns} dataSource={dataSource} pagination={false} style={{ width: 900 }} bordered />
        </FormContent>
    );
}
